import * as constants from './constants'

const defaultState = {
  newsList:[],
  name: 'Jarry'
}
export default (state = defaultState, action) => {
  switch (action.type) {
    case constants.HOME_LIST:
      return { ...state, newsList: action.payload}
    default:
      return state
  }
}